package org.nidy.erp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.nidy.erp.utils.CustomDateTimeSerializer;
import java.util.Date;
@TableName("uf_MemberShip")
@Data

public class MemberShip {
    @TableId(type = IdType.AUTO)
    private Long id; // 主键字段
    private String openid;
    @TableField(value = "nickName")
    private String 	nickName;
    @TableField(value = "avatarUrl")
    private String 	avatarUrl;
    @JsonSerialize(using = CustomDateTimeSerializer.class)
    @TableField(value = "registerDate")
    private Date registerDate;
    @JsonSerialize(using = CustomDateTimeSerializer.class)
    @TableField(value = "lastLoginDate")
    private Date lastLoginDate;
    @TableField(select = false,exist = false)
    private String code;
}
